package com.xxh.mqstudy.fanoutReceiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@RabbitListener(queues = {"QuenueA"}) //我要监听队列A的消息
public class FanoutReceiverA {

    @RabbitHandler
    public void handlerMsg(Map map){
        System.out.println("消费者A已收到："+map.toString());
    }
}
